<?php namespace web\admin\controller;
/** .-------------------------------------------------------------------
 * |  Software: [HDPHP framework]
 * |      Site: www.hdphp.com
 * |-------------------------------------------------------------------
 * |    Author: 向军 <2300071698@qq.com>
 * |    WeChat: aihoudun
 * | Copyright (c) 2012-2019, www.houdunwang.com. All Rights Reserved.
 * '-------------------------------------------------------------------*/

class Login{
	private $db;
	public function __construct(){
		$this->db=new \system\model\Admin;
	}

	
//首页
	public function index() {
		View::with('title','管理员请登录');
		if(IS_POST){
			$re=$this->db->store();
			if(!$re){
				message($this->db->getError(),'','error');die;
			}
//			登录成功提示
			message('登录成功',U('admin/entry/index'));
		}
		View::make();
	}
		
}













